<?php
namespace app\api\model;
use think\Model;

class Notice extends Model
{
    protected $table='cx_notice';
    protected $pk='id';
    public $types = [
    1=>'杂志',
    2=>'小课',
    3=>'原音重现'
    ];
    public $objs = [
    1=>'Magazine',
    2=>'Course',
    3=>'TalkShow'
    ];
    public $user_types = [
    0=>'全部',
    1=>'会员',
    2=>'非会员'
    ];
    public $paths = [
    1=>'pages/magazine/maga_details',
    2=>'pages/tutorial/tuto_details',
    3=>'pages/talkshow/talk_details'
    ];
    //本模型开启时间自动写入
   protected $autoWriteTimestamp = true;
}